package com.coldchain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.coldchain.admin.user.entity.Role;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class AdminVo implements Serializable {

    private String userId;
    /**
     * 登录名
     */

    private String loginName;

    /**
     * 昵称
     */
    private String nickn;
    /**
     * 手机号码
     */
    private String phone;
    /**
     * 电了信箱
     */
    private String email;
    /**
     * 性别 1男 0女
     */
    private String sex;
    /**
     * 头像
     */
    private String profile;

    @JSONField(serialize = false)
    private String rolestr;
    /**
     * 角色集
     */
    private List<Role> roles;


    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String createBy;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getNickn() {
        return nickn;
    }

    public void setNickn(String nickn) {
        this.nickn = nickn;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getRolestr() {
        return rolestr;
    }

    public void setRolestr(String rolestr) {
        this.rolestr = rolestr;
    }
}
